import { request } from "@/utils/service"

/** 查存量列表接口 */
export function getComboDataApi(params: any) {
  return request({
    url: "/order/stock/query",
    method: "get",
    params
  })
}
/** h5 根据ID查详情 */
export function getComboDetails(id: any) {
  return request({
    url: `/order/stock/queryById/${id}`,
    method: "get"
  })
}
/** h5 根据手机号获取验证码 */
export function getPhoneCode(data: any) {
  return request({
    url: "/order/stockOrder/getnot",
    method: "post",
    data
  })
}
/** h5 下单接口 */
export function createH5DataApi(data: any) {
  return request({
    url: "/order/stockOrder/submit",
    method: "post",
    data
  })
}
/**快手数据转换API */
export function getKsApis(params: any) {
  return request({
    url: "/open/stock/stockKS",
    method: "get",
    params
  })
}
